.. _ocasensor: 1.1.2 OcaSensor ================ Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaWorker ` : :ref:`OcaSensor ` .. cpp:class:: OcaSensor: OcaWorker Abstract base class for all sensor classes. **Properties**: .. _ocasensor_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.2" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This is a class property instead of an object property. This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocasensor_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 3 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. .. _ocasensor_readingstate: .. cpp:member:: OcaSensorReadingState ReadingState Enum that describes whether current reading value is valid and if not, why not. Readonly. This property has id ``3.1``. Properties inherited from :ref:`ocaworker`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaWorker::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaWorker::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaMap` :ref:`OcaWorker::PortClockMap ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` **Methods**: .. _ocasensor_getreadingstate: .. cpp:function:: OcaStatus GetReadingState(OcaSensorReadingState &state) Gets the current reading state of the sensor. This method has id ``3.1``. - :cpp:expr:`state`: Output parameter. Methods inherited from :ref:`ocaworker`: - :ref:`OcaWorker::GetClassIdentification ` - :ref:`OcaWorker::GetLockable ` - :ref:`OcaWorker::GetLockState ` - :ref:`OcaWorker::GetRole ` - :ref:`OcaWorker::SetLockNoWrite ` - :ref:`OcaWorker::SetLockNoReadWrite ` - :ref:`OcaWorker::Unlock ` - :ref:`OcaWorker::AddPort ` - :ref:`OcaWorker::DeletePort ` - :ref:`OcaWorker::DeletePortClockMapEntry ` - :ref:`OcaWorker::GetEnabled ` - :ref:`OcaWorker::GetLabel ` - :ref:`OcaWorker::GetLatency ` - :ref:`OcaWorker::GetOwner ` - :ref:`OcaWorker::GetPath ` - :ref:`OcaWorker::GetPortClockMap ` - :ref:`OcaWorker::GetPortClockMapEntry ` - :ref:`OcaWorker::GetPortName ` - :ref:`OcaWorker::GetPorts ` - :ref:`OcaWorker::SetEnabled ` - :ref:`OcaWorker::SetLabel ` - :ref:`OcaWorker::SetLatency ` - :ref:`OcaWorker::SetPortClockMap ` - :ref:`OcaWorker::SetPortClockMapEntry ` - :ref:`OcaWorker::SetPortName `